﻿using System;
using System.Web.Security;

namespace TeamFranceTriple.Account
{
    public partial class ChangePasswordQuestionAnswer : BaseUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void CreateUserButton_Click(object sender, EventArgs e)
        {
            if (!this.Page.IsValid) return;

            ThisMaster.Requester.Membership.ChangePasswordQuestionAndAnswer(Password.Text, Question.Text, Answer.Text);
            Response.Redirect("~/" + ThisMaster.Requester.Culture + "/userprofile");
        }

        protected void CancelButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/" + ThisMaster.Requester.Culture + "/userprofile");
        }
    }
}